Hsingyu Yen

5 Reputation

One Badge

0 years, 95 days

MaplePrimes Activity


These are questions asked by Hsingyu Yen

I encountered this issue while writing some code. Here is my code:

numArray := [17, 18, 19];
symArray := [x, y, z];
kronArray := map(i -> local j; symArray[i] = symArray[1]^mul(numArray[j], j = 1 .. i - 1), [$ (1 .. 3)]);

When I run it, I get the following warning:

Warning, (in anonymous procedure created in Typesetting:-FI) `j` is implicitly declared local;

After clicking the LINK  to Maple's help, I saw a similar issue in Example 3. However, Example 3 didn't resolve the problem. How can I declare a variable as local within an anonymous function?

Page 1 of 1